FROM index.tenxcloud.com/google_containers/fluentd-elasticsearch:1.16
MAINTAINER yzh 

# Disable prompts from apt.
ENV DEBIAN_FRONTEND noninteractive

# Copy the Fluentd configuration file.
COPY td-agent.conf /etc/td-agent/td-agent.conf

COPY build.sh /tmp/build.sh
RUN /tmp/build.sh

# Run the Fluentd service.
ENTRYPOINT ["td-agent"]
